package com.etc.cloud.config;

import java.time.ZoneId;
import java.time.ZonedDateTime;

/**
 * @Author kalista
 * @Description
 * @Date 2020/8/24  15:07
 **/
public class Test {
    public static void main(String[] args) {
//        ZonedDateTime now = ZonedDateTime.now();

        //自定义
        ZonedDateTime now = ZonedDateTime.now(ZoneId.of("America/New_York"));

        System.out.println(now);
    }
}
